function igmm_c(a, b)
{
    if (a == null)
    {
        throw Error("createDismissibleMessage(msg, opt_callback): msg is undefined or null");
    }
    var c = this.c(a),d = document.createElement("td");
    d.width = 10;
    var e = d.appendChild(document.createElement("span"));
    e.className = this.d("mmlib_xlink");
    e.onclick = igmm_(c, b);
    e.innerHTML = "[x]";
    c.rows[0].appendChild(d);
    return c
}
function igmm_f(a, b, c)
{
    if (a == null)
    {
        throw Error("createTimerMessage(msg, seconds, opt_callback): msg is undefined or null");
    }
    else if (typeof b == "undefined" || isNaN(b))
    {
        throw Error("createTimerMessage(msg, seconds, opt_callback): seconds is undefined or NaN");
    }
    var d = this.c(a);
    window.setTimeout(igmm_(d, c), b * 1000);
    return d
}
function igmm_e(a)
{
    if (a == null)
    {
        throw Error("createStaticMessage(msg): msg is undefined or null");
    }
    return this.c(a)
}
function igmm_g(a)
{
    if (typeof a != "undefined" && a != null)
    {
        igmm_(a)()
    }
}
function igmm_(a, b)
{
    return function()
    {
        if (typeof b == "function")
        {
            if (b() == false)
            {
                return
            }
        }
        a.parentNode.removeChild(a)
    }
}
function igmm_d(a)
{
    var b = document.createElement("table");
    b.id = "mm_" + this.a + "_" + this.numMessages;
    b.className = this.d("mmlib_table");
    b.cellSpacing =
    0;
    b.cellPadding = 0;
    this.numMessages++;
    var c = b.appendChild(document.createElement("tbody")),d = c.appendChild(document.createElement("tr")),e = d.appendChild(document.createElement("td"));
    if (typeof a == "object" && a.parentNode && a.parentNode.nodeType == 1)
    {
        var f = a.cloneNode(true);
        a.style.display = "none";
        f.id = "";
        e.appendChild(f);
        a.parentNode.insertBefore(b, a.nextSibling)
    }
    else
    {
        if (typeof a == "object")
        {
            e.appendChild(a)
        }
        else
        {
            e.innerHTML = a
        }
        this.b.appendChild(b)
    }
    return b
}
function igmm_b()
{
    var a = "mm_" + this.a,b = _gel(a);
    if (!b)
    {
        b = document.createElement("div");
        b.id = a;
        var c = _getGadgetContainer(this.a);
        if (!c)
        {
            throw Error("Cannot locate gadget container.  Are you missing a <body> tag?");
        }
        c.insertBefore(b, c.firstChild)
    }
    return b
}
function igmm_a(a)
{
    return a + " " + a + this.a
}
function igmm_h(a)
{
    var b = document.getElementsByTagName("head")[0];
    if (typeof b == "undefined")
    {
        throw new Error("Document is missing <head> element. Cannot import stylesheet: " + a);
    }
    var c = document.createElement("link");
    c.rel = "stylesheet";
    c.type = "text/css";
    c.href =
    a;
    b.appendChild(c)
}
function _IG_MiniMessage(a, b)
{
    this.numMessages = 0;
    this.a = a;
    this.b = null;
    this.createDismissibleMessage = igmm_c;
    this.createTimerMessage = igmm_f;
    this.createStaticMessage = igmm_e;
    this.dismissMessage = igmm_g;
    this.c = igmm_d;
    this.e = igmm_b;
    this.d = igmm_a;
    if (typeof b == "object")
    {
        this.b = b
    }
    else
    {
        this.b = this.e()
    }
}
igmm_h("css/minimessagelib.css");
